﻿using SchemaExplorer;
using System;
using System.Collections.Generic;
using System.Text;

namespace BaoMen.CodeSmith.Framework
{
    /// <summary>
    /// 数据库信息
    /// </summary>
    public class DbSchema
    {
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="tableSchemas"></param>
        public DbSchema(TableSchema tableSchema)
        {
            TableSchema = tableSchema;
        }

        /// <summary>
        /// 数据库表名前缀
        /// </summary>
        public string TableNamePrefix { get; set; }

        /// <summary>
        /// 数据库表名分隔符
        /// </summary>
        public string TableNameSeparator { get; set; }

        /// <summary>
        /// 数据表架构
        /// </summary>
        public TableSchema TableSchema { get; private set; }
    }
}
